3.261 \(\int (A+B x) \left (a+c x^2\right )^2 \, dx\)

Optimal. Leaf size=45 \[ a^2 A x+\frac{2}{3} a A c x^3+\frac{B \left (a+c x^2\right )^3}{6 c}+\frac{1}{5} A c^2 x^5 \]

[Out]

a^2*A*x + (2*a*A*c*x^3)/3 + (A*c^2*x^5)/5 + (B*(a + c*x^2)^3)/(6*c)

_______________________________________________________________________________________

Rubi [A]  time = 0.0425193, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133 \[ a^2 A x+\frac{2}{3} a A c x^3+\frac{B \left (a+c x^2\right )^3}{6 c}+\frac{1}{5} A c^2 x^5 \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)*(a + c*x^2)^2,x]

[Out]

a^2*A*x + (2*a*A*c*x^3)/3 + (A*c^2*x^5)/5 + (B*(a + c*x^2)^3)/(6*c)

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \frac{2 A a c x^{3}}{3} + \frac{A c^{2} x^{5}}{5} + A \int a^{2}\, dx + \frac{B \left (a + c x^{2}\right )^{3}}{6 c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)*(c*x**2+a)**2,x)

[Out]

2*A*a*c*x**3/3 + A*c**2*x**5/5 + A*Integral(a**2, x) + B*(a + c*x**2)**3/(6*c)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0033259, size = 60, normalized size = 1.33 \[ a^2 A x+\frac{1}{2} a^2 B x^2+\frac{2}{3} a A c x^3+\frac{1}{2} a B c x^4+\frac{1}{5} A c^2 x^5+\frac{1}{6} B c^2 x^6 \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)*(a + c*x^2)^2,x]

[Out]

a^2*A*x + (a^2*B*x^2)/2 + (2*a*A*c*x^3)/3 + (a*B*c*x^4)/2 + (A*c^2*x^5)/5 + (B*c
^2*x^6)/6

_______________________________________________________________________________________

Maple [A]  time = 0.001, size = 51, normalized size = 1.1 \[{\frac{B{c}^{2}{x}^{6}}{6}}+{\frac{A{c}^{2}{x}^{5}}{5}}+{\frac{aBc{x}^{4}}{2}}+{\frac{2\,aAc{x}^{3}}{3}}+{\frac{{a}^{2}B{x}^{2}}{2}}+{a}^{2}Ax \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)*(c*x^2+a)^2,x)

[Out]

1/6*B*c^2*x^6+1/5*A*c^2*x^5+1/2*a*B*c*x^4+2/3*a*A*c*x^3+1/2*a^2*B*x^2+a^2*A*x

_______________________________________________________________________________________

Maxima [A]  time = 0.688328, size = 68, normalized size = 1.51 \[ \frac{1}{6} \, B c^{2} x^{6} + \frac{1}{5} \, A c^{2} x^{5} + \frac{1}{2} \, B a c x^{4} + \frac{2}{3} \, A a c x^{3} + \frac{1}{2} \, B a^{2} x^{2} + A a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2*(B*x + A),x, algorithm="maxima")

[Out]

1/6*B*c^2*x^6 + 1/5*A*c^2*x^5 + 1/2*B*a*c*x^4 + 2/3*A*a*c*x^3 + 1/2*B*a^2*x^2 +
A*a^2*x

_______________________________________________________________________________________

Fricas [A]  time = 0.264014, size = 1, normalized size = 0.02 \[ \frac{1}{6} x^{6} c^{2} B + \frac{1}{5} x^{5} c^{2} A + \frac{1}{2} x^{4} c a B + \frac{2}{3} x^{3} c a A + \frac{1}{2} x^{2} a^{2} B + x a^{2} A \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2*(B*x + A),x, algorithm="fricas")

[Out]

1/6*x^6*c^2*B + 1/5*x^5*c^2*A + 1/2*x^4*c*a*B + 2/3*x^3*c*a*A + 1/2*x^2*a^2*B +
x*a^2*A

_______________________________________________________________________________________

Sympy [A]  time = 0.108209, size = 58, normalized size = 1.29 \[ A a^{2} x + \frac{2 A a c x^{3}}{3} + \frac{A c^{2} x^{5}}{5} + \frac{B a^{2} x^{2}}{2} + \frac{B a c x^{4}}{2} + \frac{B c^{2} x^{6}}{6} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)*(c*x**2+a)**2,x)

[Out]

A*a**2*x + 2*A*a*c*x**3/3 + A*c**2*x**5/5 + B*a**2*x**2/2 + B*a*c*x**4/2 + B*c**
2*x**6/6

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.270294, size = 68, normalized size = 1.51 \[ \frac{1}{6} \, B c^{2} x^{6} + \frac{1}{5} \, A c^{2} x^{5} + \frac{1}{2} \, B a c x^{4} + \frac{2}{3} \, A a c x^{3} + \frac{1}{2} \, B a^{2} x^{2} + A a^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + a)^2*(B*x + A),x, algorithm="giac")

[Out]

1/6*B*c^2*x^6 + 1/5*A*c^2*x^5 + 1/2*B*a*c*x^4 + 2/3*A*a*c*x^3 + 1/2*B*a^2*x^2 +
A*a^2*x